package msu.ml.data.level2;

public class VelocityDataProvider implements IRayDataProvider
{
   private Ray ray;
   public VelocityDataProvider(Ray ray) {this.ray = ray;}
   public IRayDataProvider createForRay(Ray ray) { return new VelocityDataProvider(ray); }
   public double [] getData() {return ray.getVelocityData();} 
   public int getGateSize() {return ray.getVelocityGateSize();}
   public double getDatum(int index) {return ray.getVelocity(index);}
   public void setDatum(int index, double value){ray.setVelocity(index, value);}
}
